package com.design.flyweight.football;

public class FlyweightPatternExample {
    public static void main(String[] args) {
        Player player1 = new Player("FootballPlayer A", "意大利", "10");
        Player player2 = new Player("FootballPlayer B", "西班牙", "7");
        Player player3 = new Player("FootballPlayer C", "意大利", "4");

        player1.display();
        player2.display();
        player3.display();
        System.out.println(player1.getTitle() == player3.getTitle());
    }
}